package com.cinc.mdm.modules.bom.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cinc.mdm.modules.bom.entity.MdmBomDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cinc.mdm.modules.bom.vo.MdmBomPage;
import com.cinc.mdm.modules.bom.vo.MdmBomTreePage;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: bom明细
 * @Author: jeecg-boot
 * @Date:   2021-10-24
 * @Version: V1.0
 */
public interface MdmBomDetailMapper extends BaseMapper<MdmBomDetail> {

	public boolean deleteByMainId(@Param("mainId") String mainId);
    
	public List<MdmBomDetail> selectByMainId(@Param("mainId") String mainId);

    List<MdmBomTreePage> selectTreeListNextLevel(@Param("superMaterialId") String superMaterialId, @Param("factory") String factory);

    List<MdmBomDetail> selectByMaterialCodeAndMainId(@Param("materialCodeList") List<String> materialCodeList, @Param("mainId") String mainId);
}
